using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace Zsa.Reflection.Discovery
{
    public interface IMemberFilter
    {
        /// <summary>
        /// The type filter.
        /// </summary>
        ITypeFilter TypeFilter { get;}

        /// <summary>
        /// The member types.
        /// </summary>
        MemberTypes MemberTypes { get; }

        /// <summary>
        /// Gets the binding flags.
        /// </summary>
        /// <value>The binding flags.</value>
        BindingFlags BindingFlags { get; }

        /// <summary>
        /// Gets the filter.
        /// </summary>
        /// <value>The filter.</value>
        object Filter { get; }

        /// <summary>
        /// Checks the type.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="filter">The filter.</param>
        /// <returns></returns>
        bool CheckMember(MemberInfo type, object filter);


    }
}
